/**
 * @author leihfei
 * @description 审核状态工具类，利用枚举
 */
export class ApproveCheckStatusUtils {
  public static checkStatus(status: number): string {
    let result = '';
    switch (status) {
      case ApproveCheckEnum.UNAUDITED:
        result = '未审批';
        break;
      case ApproveCheckEnum.AUDITING:
        result = '审批中';
        break;
      case ApproveCheckEnum.AUDITPASS:
        result = '审批通过';
        break;
      case ApproveCheckEnum.AUDITNOTPASS:
        result = '审批不通过';
        break;
    }
    return result;
  }

}

enum ApproveCheckEnum {

  /**
   * 初始化
   */
  INIT = 0,

  /**
   * 未审核
   */
  UNAUDITED = 1,

  /**
   * 审批中
   */
  AUDITING = 2,

  /**
   * 审批通过
   */
  AUDITPASS = 3,

  /**
   * 审批未通过
   */
  AUDITNOTPASS = 4,
}
